package j10;

/**
 * @author chengshuai
 * @date 2021/5/4 23:40
 */
public class ReEnterLockDemo {

    public synchronized void f1() {
        System.out.println("外");
        f2();
    }
    public synchronized void f2() {
        System.out.println("中");
        f3();
    }
    public synchronized void f3() {
        System.out.println("内");
    }

    public static void main(String[] args) {
        new ReEnterLockDemo().f1();
    }
}
